package org.example.myleet.p1582;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(1 == solution.numSpecial(Parser.parse("" +
                "[[0,0,0,0,0,1,0,0]," +
                " [0,0,0,0,1,0,0,1]," +
                " [0,0,0,0,1,0,0,0]," +
                " [1,0,0,0,1,0,0,0]," +
                " [0,0,1,1,0,0,0,0]]")));
        Assert.isTrue(1 == solution.numSpecial(Parser.parse("[[1,0,0],\n" +
                "            [0,0,1],\n" +
                "            [1,0,0]]")));
        Assert.isTrue(3 == solution.numSpecial(Parser.parse("[[1,0,0],\n" +
                "            [0,1,0],\n" +
                "            [0,0,1]]")));
        Assert.isTrue(2 == solution.numSpecial(Parser.parse("[[0,0,0,1],\n" +
                "           [1,0,0,0],\n" +
                "           [0,1,1,0],\n" +
                "           [0,0,0,0]]\n")));
        Assert.isTrue(3 == solution.numSpecial(Parser.parse("[[0,0,0,0,0],\n" +
                "           [1,0,0,0,0],\n" +
                "           [0,1,0,0,0],\n" +
                "           [0,0,1,0,0],\n" +
                "           [0,0,0,1,1]]\n")));
    }
}
